<div id="div_aceptor_rpt">
    <?php

       echo  json_encode(array(
                    "success"	=>	$img_tmp_rpt,                    
                    "error"	=>	$code_error

       ));
    ?>
</div>